package com.indusfo.spc.mapper;

import com.indusfo.spc.pojo.BatchBadpheno;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author liub
 * @Date 2019/12/5 9:44
 * @Version 1.0
 */

public interface BatchBadphenoMapper {
    /**
     * 新增
     */
    int insertBatchBadpheno(BatchBadpheno batchBadpheno);

    /**
     * 修改
     */
    int updateBatchBadpheno(BatchBadpheno batchBadpheno);

    /**
     * 查询
     */
    List<BatchBadpheno> queryBatchBadpheno(BatchBadpheno batchBadpheno);

    /**
     * 总数
     */
    int countBatchBadpheno(BatchBadpheno batchBadpheno);

    /**
     * 判重
     */
    int checkBatchBadpheno(BatchBadpheno batchBadpheno);

    /**
     * 启停
     */
    int deleteBatchBadpheno(@Param("batchBadphenoIds") List<Integer> batchBadphenoIds, @Param("dataState") Integer dataState);

    /**
     * 级联删除查询
     */
    List<BatchBadpheno> queryBatchBadphenoByBatchFlowId(@Param("batchFlowId") Integer batchFlowId);

    /**
     * 级联删除
     */
    int deleteBatchBadphenoByBatchBadphenoId(@Param("batchBadphenoId") Integer batchBadphenoId, @Param("dataState") Integer dataState);
}